Globals


Global Summary
final str

COT_CHECKPOINT_LOCALS

Dumps variables in local scope into debug log file and continues normal script execution.

final str

COT_VARDUMP_LOCALS

Local vardump macro.

Global Detail

COT_CHECKPOINT_LOCALS

system\debug.php at line 138
public final str COT_CHECKPOINT_LOCALS = 'global $cfg; $debug_fp = fopen($cfg[\'debug_logpath\'] . \'/cot_debug_\' . date(\'Ymd_His\') . \'.log\', "a"); $debug_btrace = debug_backtrace(); fputs($debug_fp, $debug_btrace[0]["file"] . ", " . $debug_btrace[1]["line"] . ":\n"); $debug_vars = get_defined_vars(); foreach ($debug_vars as $debug_key => $debug_val) { if ($debug_key != "GLOBALS" && $debug_key != "debug_vars" && $debug_key != "debug_btrace" && $debug_key != "debug_fp") { fputs($debug_fp, "$debug_key = " .print_r($debug_val, TRUE) ."\n"); } } fputs($debug_fp, "----------------\n"); fclose($debug_fp);'

Dumps variables in local scope into debug log file and continues normal script execution.

Global:
string $cfg['debug_logpath'] Path to debug log file
Example:
eval(COT_CHECKPOINT_LOCALS);
See Also:
cot_watch(), COT_VARDUMP_LOCALS

COT_VARDUMP_LOCALS

system\debug.php at line 106
public final str COT_VARDUMP_LOCALS = 'ob_end_clean(); $debug_vars = get_defined_vars(); foreach ($debug_vars as $debug_key => $debug_val) { if ($debug_key != "GLOBALS" && $debug_key != "debug_vars") { echo "<br /><em>$debug_key</em><br />"; var_dump($debug_val); } } die();'

Local vardump macro. Prints structure and contents of all variables in the local scope.

Example:
eval(COT_VARDUMP_LOCALS);
See Also:
cot_watch()